package com.book.common.result;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Description：
 * @Author： leo.xiong
 * @CreateDate： 2020/04/21 14:25
 * @Email： leo.xiong@suyun360.com
 * Version：1.0
 */
@Data
public class PageInfo<T> implements Serializable {

    private static final long serialVersionUID = 3646385047478174530L;

    private int pageNo;

    private int pageSize;

    private long count;

    private List<T> list;

    public PageInfo() {
    }

    public PageInfo(int pageNo, int pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }

    public PageInfo(int pageNo, int pageSize, long count) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.count = count;
    }

    public PageInfo(int pageNo, int pageSize, long count, List<T> list) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.count = count;
        this.list = list;
    }
}
